package com.fhao.friend.domain.question.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QuestionVO {
    //分配ID (主键类型为number或string）,
    // 默认实现类 com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator(雪花算法)
    @JsonSerialize(using = ToStringSerializer.class) //将questionId转为字符串类型
    private Long questionId;

    private String title;

    private Integer difficulty;

}
